﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomiseErrorMessages.aspx.cs" Inherits="CKS.Sandbox.Admin.Layouts.CKS.Sandbox.Admin.CustomiseErrorMessages" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div style="margin: 10px; padding: 10px;">
        <div style="position: relative; height: 70px;">
            <div style="float: left;">
                <img src="/_layouts/images/CKS.Sandbox.Admin/CKS_Logo_full.gif" alt="Community Kit for SharePoint" /> 
            </div>
            <div style="float: left; padding-left: 10px;">
                <h2>CKS:Sandbox - Customise Error Messages</h2>
            </div>
            <div style="clear: left;">&nbsp;</div>
        </div>
        
        <p>
            <h3>Unauthorised Assembly</h3>
            <div>
            Upon an error, this URL will be appended with the query string "Solution"<br />
            The value of this query string will be the filename of the solution which has been blocked.<br />
            You can use this in your page to identify the solution to your users.
            </div>
            <p style="font-style: italic;">example: /_layouts/CKS.Sandbox.Admin/UnauthorisedAssembly.aspx</p>
            <p>
                <asp:TextBox ID="txtAssemblyUrl" runat="server"  Width="450px"/>
            </p>
        </p>

        <p>
            <h3>Unauthorised Solution</h3>
            <div>
            Upon an error, this URL will be appended with the query string "Solution"<br />
            The value of this query string will be the filename of the solution which has been blocked.<br />
            You can use this in your page to identify the solution to your users.
            </div>
            <p style="font-style: italic;">example: /_layouts/CKS.Sandbox.Admin/UnauthorisedSolution.aspx</p>
            <p>
                <asp:TextBox ID="txtSolutionUrl" runat="server"  Width="450px" />
            </p>
        </p>

        <p>
            <h3>Blocked File Types</h3>
            <div>
                Upon an error, this will be appended with the query strings "Solution" and "FileTypes"<br />
                The value of the "Solution" query string will be the filename of the solution which has been blocked.<br />
                The value of the "FileTypes" query string will be the list of blocked file types which have been detected.<br />
                You can use these in your page to identify the solution and file types for your users.
            </div>
            <p style="font-style: italic;">example: /_layouts/CKS.Sandbox.Admin/BlockedFiles.aspx</p>
            <p>
                <asp:TextBox ID="txtFileTypeUrl" runat="server"  Width="450px" />
            </p>
        </p>

        <p>
            <asp:Button ID="btnSave" runat="server" Text="Save" />
            
            <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
        </p>
    </div>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
CKS:Sandbox - Customise Error Messages
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
CKS:Sandbox - Customise Error Messages
</asp:Content>
